package com.zhangxx.web.common.model;

public enum GoodsStatus {

    NOT_FOUND_GOODS(700001,"商品不存在"),

    GOODS_STATUS(700002,"商品已下架"),

    NOT_FOUND_CATEGORY(700003,"商品分类不可用"),
    ;

    private int code;

    private String message;

    GoodsStatus(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int value() {
        return code;
    }

    public String message() {
        return message;
    }

    @Override
    public String toString() {
        return Integer.toString(this.code);
    }

}
